package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-03
 */
@TableName("details")
public class Details extends Model<Details> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 收支名称
     */
    private String name;

    /**
     * 收支类型
     */
    private Integer type;


    /**
     * 创建时间
     */
    private Date creatdate;
    /**
     * 更新时间
     */
    private Date updatedate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreatdate() {
        return creatdate;
    }

    public void setCreatdate(Date creatdate) {
        this.creatdate = creatdate;
    }

    public Date getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(Date updatedate) {
        this.updatedate = updatedate;
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Details{" +
        "id=" + id +
        ",type=" + type +
        ", name=" + name +
        ", creatdate=" + creatdate +
        ", updatedate=" + updatedate +
        "}";
    }


    public static enum Enum_Type {
        //1:成本支出项目,2:市场推广,3:应收付应往来,4:手续费,5:其他费用
        成本支出项目(1, "成本支出项目"), 市场推广(2, "市场推广"), 应收付应往来(3, "应收付应往来"), 手续费(4, "手续费"), 其他费用(5, "其他费用");
        public Integer value;
        public String desc;

        private Enum_Type(Integer _Value, String _Desc) {
            this.value = _Value;
            this.desc = _Desc;
        }
    }
}
